Skip to main content

milliseconds

Type

function

Summary

Returns the number of milliseconds since the start of the eon.

Syntax

the milliseconds
milliseconds()

Description

Use the milliseconds function to time events that must be checked more often than once per second.

The milliseconds function returns the total number of milliseconds since midnight GMT, January 1, 1970.

A millisecond is one-thousandth of a second. If you don't need to time events with this much precision, use the seconds function or the ticks function.

Examples

the milliseconds
if the milliseconds - startMilliseconds < 10 then answer "Success!"

glossary: event, return, eon

keyword: integer, milliseconds

command: convert

control structure: function

function: seconds, milliseconds, date, ticks

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?